<?php
// +----------------------------------------------------------------------
// | Amicool-MVC [ Dynamic Flexible Agile Devlepment]
// +----------------------------------------------------------------------
// | Copyright (c) 2015-2020 http://amicool.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 郡笑笙 <iamzjs@126.com>
// +----------------------------------------------------------------------
class HomeModel extends Model
{
	
	function __Construct()
	{
		parent::__Construct();
	}
	function getUserList(){
		$cond = 'order by uid desc limit 6';
		return $this->_fetchAll('users',$cond);
	}
	function getUserByName($name){
		return $this->_fetchOne('users','uname',$name);
	}
	function getUserByID($uid){
		return $this->_fetchOne('users','uid',$uid);
	}
}
?>